/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

/**
 *
 * @author Administrateur
 */
public class HibernateFactory {
    private static SessionFactory sessionFactory= new Configuration().configure().buildSessionFactory();
    
    private HibernateFactory() {
    }    
    
    public static Session getSession() {
        return sessionFactory.openSession();
    }
}

